package com.wildwolf.project.wildwolf.ui.wizard;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

import com.wildwolf.project.wildwolf.R;
import com.wildwolf.project.wildwolf.ui.LoginActivity;
/**
 *  ע�����˺�
 * @author LEON
 *
 */
public class AccountActivity extends Activity implements OnClickListener {
	/**
	 * ע��Button
	 */
	private Button singInButton;
	/**
	 * ��¼Button
	 */
	private Button loginButton;

	/**
	 * Constructor.
	 */
	public AccountActivity() {
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.layout_wizard_account);
		singInButton = (Button) findViewById(R.id.signin);
		loginButton = (Button) findViewById(R.id.login);
		singInButton.setOnClickListener(this);
		loginButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent i = null;
		if (v == singInButton) {
			i = new Intent(this, com.wildwolf.project.wildwolf.ui.register.AccountActivity.class);
			startActivity(i);
		} else {
			i = new Intent(this, LoginActivity.class);
			startActivity(i);
		}
	}
}
